package com.management.platform.exception;

import com.management.platform.enums.LoginResultEnum;

public class LoginException extends RuntimeException{
  private String code;

  public LoginException(LoginResultEnum resultEnum){
    super(resultEnum.getMsg());
    this.code = resultEnum.getCode();
  }

  public LoginException(String code, String message) {
    super(message);
    this.code = code;
  }

  public String getCode() {
    return code;
  }

  public void setCode(String code) {
    this.code = code;
  }
}
